﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Conventions.Edm.Db;
using System.Linq;
using System.Text;

namespace Wicresoft.Logger.Entity
{
    class LogContext : DbContext
    {

        public DbSet<Log> Logs { get; set; }

        // EFCodeFirst Bug: 必须去除表结构复数命名规范
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
